#include "core/tensor_test.h"
#include "core/tensor.h"
#include "core/tensor_view.h"
#include "log.h"

namespace  ldl
{
namespace core
{
void TensorTest::test()
{
    {
        Tensor<float> tensor({2,3,4,5,6});
        LogInfo() << "tensor: " << tensor;
    }

    // shape + data构造
    {
        auto tensor = Tensor<float>({2,3}, {2,3,4,5,6,7});
        LogInfo() << "tensor: " << tensor;
    }
}
}
}